package com.hmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.order.pojo.Order;
import com.hmall.order.pojo.OrderSubmit;

public interface IOrderService extends IService<Order> {
    /**
     * 创建订单
     * @param orderSubmit 客户提交订单自定义接收数据类型
     * @return 订单id
     */
    Long submit(OrderSubmit orderSubmit);

    /**
     * 清理超时未处理订单
     */
    void closeOrder();
}
